package Reservation;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JOptionPane;
import Event.Calendar;
import Signup.AccountManagement;

public class ReserveCalendar extends Calendar {

	public ReserveCalendar() {
		super();
		btnAction();
		setSize(975, 770);
	}

	public void btnAction() {

		homebtn.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				setVisible(false);
			}
		});

		btnmonkey1.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				AccountManagement.User
						.setReserveList("December 6 2014. Monkey Circus Show!");
				JOptionPane.showMessageDialog(null, "Reservation Complete!",
						"Reservation", JOptionPane.INFORMATION_MESSAGE);
				setVisible(false);
			}
		});
		btnmonkey2.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				AccountManagement.User
						.setReserveList("December 20 2014. Monkey Circus Show!");
				JOptionPane.showMessageDialog(null, "Reservation Complete!",
						"Reservation", JOptionPane.INFORMATION_MESSAGE);
				setVisible(false);

			}
		});
		btnele1.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				AccountManagement.User
						.setReserveList("December 7 2014. Thailand Elephant Show!");
				JOptionPane.showMessageDialog(null, "Reservation Complete!",
						"Reservation", JOptionPane.INFORMATION_MESSAGE);
				setVisible(false);
			}
		});
		btnele2.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				AccountManagement.User
						.setReserveList("December 21 2014. Thailand Elephant Show!");
				JOptionPane.showMessageDialog(null, "Reservation Complete!",
						"Reservation", JOptionPane.INFORMATION_MESSAGE);
				setVisible(false);
			}
		});

		btnlion1.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				AccountManagement.User
						.setReserveList("December 10 2014. Safari lion show!");
				JOptionPane.showMessageDialog(null, "Reservation Complete!",
						"Reservation", JOptionPane.INFORMATION_MESSAGE);
				setVisible(false);
			}
		});
		btnlion2.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				AccountManagement.User
						.setReserveList("December 24 2014. Safari lion show!");
				JOptionPane.showMessageDialog(null, "Reservation Complete!",
						"Reservation", JOptionPane.INFORMATION_MESSAGE);
				setVisible(false);
			}
		});
		btnseal1.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				AccountManagement.User
						.setReserveList("December 12 2014. fulseal Show!");
				JOptionPane.showMessageDialog(null, "Reservation Complete!",
						"Reservation", JOptionPane.INFORMATION_MESSAGE);
				setVisible(false);
			}
		});
		btnseal2.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				AccountManagement.User
						.setReserveList("December 26 2014. fulseal Show!");
				JOptionPane.showMessageDialog(null, "Reservation Complete!",
						"Reservation", JOptionPane.INFORMATION_MESSAGE);
				setVisible(false);
			}
		});
		btnbear1.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				AccountManagement.User
						.setReserveList("December 8 2014. Bear feeding Show!");
				JOptionPane.showMessageDialog(null, "Reservation Complete!",
						"Reservation", JOptionPane.INFORMATION_MESSAGE);
				setVisible(false);
			}
		});
		
		btnbear2.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				AccountManagement.User
						.setReserveList("December 22 2014. Bear feeding Show!");
				JOptionPane.showMessageDialog(null, "Reservation Complete!",
						"Reservation", JOptionPane.INFORMATION_MESSAGE);
				setVisible(false);
			}
		});
	}
}